package com.collectplus.express.model;

import java.io.Serializable;

/**
 * 自助寄件、投递点
 * 
 * @author coffee <br>
 *         2016-9-24下午4:34:41
 */
public class ServicePointBean implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1599703020861671096L;
	// 驿站id
	private Integer id;
	private String name;
	private String code;
	private Integer status;//大于0说明柜子可用
	private Integer type;// 2 柜子  1 驿站 6 上门取件
	private String serviceTime;
	private String address;// 柜子或者驿站的地址(包含省市区)
	private String longitude;
	private String latitude;
	private String gdLongitude;
	private String gdlatitude;
	private String distance;// 带单位
	private int distanceInt;
	private String admin;
	private String phone;
	private int enshrineId;
	private String postCooperationTypeName;// 该服务点仅提供投递袋寄包裹服务
	private String goodsType;
	private String size;// 柜子规格 、小、中、大
	private int isFavor; // 是否收藏
	private String headImage;//门头图
	private boolean used;//是否是上次用过的地址

	private boolean isChecked = false;//设置是否选中  true 为选中  false 取消选中


	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public String getGoodsType() {
		return goodsType;
	}

	public void setGoodsType(String goodsType) {
		this.goodsType = goodsType;
	}

	public String getPostCooperationTypeName() {
		return postCooperationTypeName;
	}

	public void setPostCooperationTypeName(String postCooperationTypeName) {
		this.postCooperationTypeName = postCooperationTypeName;
	}

	private Integer payType;// 1线上 、2现金支付 3全部都支持

	/**
	 * 用于提交订单
	 */
	private Integer submitPayType;// 0到店、1线上

	public Integer getSubmitPayType() {
		return submitPayType;
	}

	public void setSubmitPayType(Integer submitPayType) {
		this.submitPayType = submitPayType;
	}

	public int getEnshrineId() {
		return enshrineId;
	}

	public void setEnshrineId(int enshrineId) {
		this.enshrineId = enshrineId;
	}

	public int getIsFavor() {
		return isFavor;
	}

	public void setIsFavor(int isFavor) {
		this.isFavor = isFavor;
	}

	public Integer getPayType() {
		return payType;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getAdmin() {
		return admin;
	}

	public void setAdmin(String admin) {
		this.admin = admin;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getServiceTime() {
		return serviceTime;
	}

	public void setServiceTime(String serviceTime) {
		this.serviceTime = serviceTime;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getGdLongitude() {
		return gdLongitude;
	}

	public void setGdLongitude(String gdLongitude) {
		this.gdLongitude = gdLongitude;
	}

	public String getGdlatitude() {
		return gdlatitude;
	}

	public void setGdlatitude(String gdlatitude) {
		this.gdlatitude = gdlatitude;
	}

	public String getDistance() {
		return distance;
	}

	public void setDistance(String distance) {
		this.distance = distance;
	}

	public int getDistanceInt() {
		return distanceInt;
	}

	public void setDistanceInt(int distanceInt) {
		this.distanceInt = distanceInt;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}

	public boolean isStation() {
		return type == 1;
	}

	public boolean isChecked() {
		return isChecked;
	}

	public void setChecked(boolean checked) {
		isChecked = checked;
	}

	/**
	 * 是否已经收藏
	 * 
	 * @return
	 */
	public boolean isFavorite() {
		return isFavor == 1;
	}
	public String getHeadImage() {
		return headImage;
	}

	public void setHeadImage(String headImage) {
		this.headImage = headImage;
	}
	public boolean getUsed() {
		return used;
	}

	public void setUsed(boolean used) {
		this.used = used;
	}
}
